import 'package:deer/res/colors.dart';
import 'package:deer/res/font.dart';
import 'package:flutter/material.dart';

class TextStyles {
  static const TextStyle textMain12 = TextStyle(
    fontSize: Font.font_sp12,
    color: Colours.app_main,
  );
  static const TextStyle textMain14 = TextStyle(
    fontSize: Font.font_sp14,
    color: Colours.app_main,
  );
  static const TextStyle textNormal12 = TextStyle(
    fontSize: Font.font_sp12,
    color: Colours.text_normal,
  );
  static const TextStyle textDark12 = TextStyle(
    fontSize: Font.font_sp12,
    color: Colours.text_dark,
  );
  static const TextStyle textDark14 = TextStyle(
    fontSize: Font.font_sp14,
    color: Colours.text_dark,
  );
  static const TextStyle textDark16 = TextStyle(
    fontSize: Font.font_sp16,
    color: Colours.text_dark,
  );
  static const TextStyle textBoldDark14 = TextStyle(
      fontSize: Font.font_sp14,
      color: Colours.text_dark,
      fontWeight: FontWeight.bold);
  static const TextStyle textBoldDark16 = TextStyle(
      fontSize: Font.font_sp16,
      color: Colours.text_dark,
      fontWeight: FontWeight.bold);
  static const TextStyle textBoldDark18 = TextStyle(
      fontSize: Font.font_sp18,
      color: Colours.text_dark,
      fontWeight: FontWeight.bold);
  static const TextStyle textBoldDark24 = TextStyle(
      fontSize: 24.0, color: Colours.text_dark, fontWeight: FontWeight.bold);
  static const TextStyle textBoldDark26 = TextStyle(
      fontSize: 26.0, color: Colours.text_dark, fontWeight: FontWeight.bold);
  static const TextStyle textGray10 = TextStyle(
    fontSize: Font.font_sp10,
    color: Colours.text_gray,
  );
  static const TextStyle textGray12 = TextStyle(
    fontSize: Font.font_sp12,
    color: Colours.text_gray,
  );
  static const TextStyle textGray14 = TextStyle(
    fontSize: Font.font_sp14,
    color: Colours.text_gray,
  );
  static const TextStyle textGray16 = TextStyle(
    fontSize: Font.font_sp16,
    color: Colours.text_gray,
  );
  static const TextStyle textGrayC12 = TextStyle(
    fontSize: Font.font_sp12,
    color: Colours.text_gray_c,
  );
  static const TextStyle textGrayC14 = TextStyle(
    fontSize: Font.font_sp14,
    color: Colours.text_gray_c,
  );
}

/// 间隔
class Gaps {
  /// 水平间隔
  static Widget hGap(double gap) {
    return SizedBox(width: gap);
  }

  /// 垂直间隔
  static Widget vGap(double gap) {
    return SizedBox(height: gap);
  }

  static Widget line = Container(height: 0.6, color: Colours.line);
  static const Widget empty = SizedBox();
}
